<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			var dd=[
				{uname:"dingding",email:'ding@qq.com',cont:13511011000,name:"丁春秋",sex:"0"},
				{uname:"dangdang",email:'dang@qq.com',cont:13501234568,name:"当当喵",sex:"1"},
				{uname:"doudou",email:'dou@qq.com',cont:113501234569,name:"窦志强",sex:"1"},
				{uname:"yaya",email:'lya@qq.com',cont:13501234560,name:"秦小雅",sex:"0"},
				{uname:"1111",email:'441977193@qq.com',cont:18357100796,name:"null",sex:"0"},
				{uname:"ABCD",email:'123@qq.com',cont:13538894495,name:"null",sex:"0"},
				{uname:"mohk",email:'11@qq.com',cont:13512312312,name:"null",sex:"0"},
				{uname:"121123",email:'55555555@163.com',cont:13400000000,name:"null",sex:"0"},
				{uname:"xuyong",email:'123456789@qq.com',cont:15525623622,name:"null",sex:"0"},
				{uname:"admin",email:'mail@xingyu1993.cn',cont:13580510164,name:"null",sex:"0"},
				{uname:"siyongbo",email:'616188545@qq.com',cont:18447103998,name:"null",sex:"0"},
				{uname:"qwerty",email:'1091256014@qq.com',cont:15617152367,name:"null",sex:"0"},
				{uname:"dingziqiang",email:'996534706@qq.com',cont:1556750252,name:"null",sex:"不详"},
				{uname:"hdb2264068",email:'471062503@qq.com',cont:18898405759,name:"null",sex:"0"},
				{uname:"wenhua",email:'liwenhua@tedu.cn',cont:15012345678,name:"null",sex:"不详"},
			];
	function show(){
		let strhtml=`
			<table border=1>
				<tr>
					<th>登录名称</th>
					<th>用户邮箱</th>
					<th>联系方式</th>
					<th>用户姓名</th>
					<th>用户性别</th>
					<th>操作</th>
				</tr>
		`;
		
		for(let i=0;i<dd.length;i++){
			var _sex="不详";
			if(dd[i].sex==1){
				_sex="男";
			}else if(dd[i].sex==0){
				_sex="女";
			}else{
				_sex="不详"
			}
			strhtml+=`
				<tr>
					<td>${dd[i].uname}</td>
					<td>${dd[i].email}</td>
					<td>${dd[i].cont}</td>
					<td>${dd[i].name}</td>
					<td>${_sex}</td>
					<td>
						<a href="#">修改</a>
						<a href="#">删除</a>
					</td>
				</tr>
			`;
		}
			
		
		strhtml+="</table>";
		d1.innerHTML=strhtml;	
	}
		
		</script>
	</head>
	<body onload="show()">
		
		<div id="d1"></div>
	</body>
</html>
